<?php

/**
 * ReForm is a bundle of classes written in PHP (version 5 and above), a class generates an array with components of xhtml forms.
 * This will be very simple too use with template engines such as SMARTY (http://smarty.php.net).
 * Some nice features are: check the input with regular expresions, add javascript and other attributes.
 *
 * @author Redouane Benkaddour <redouane@indago.nl>
 * @version 0.5.2
 * @package reform
 */

/**
 * Load classes automatically from include_path as given by ini, from current directory of this script or include file.
 * @param string $cfile
 * @return void
 */
function __autoload($cfile){
	require_once('objects/'.$cfile.'.class.php');
	if(!class_exists($cfile, FALSE)){
		trigger_error('Unable to load class: '.$cfile, E_USER_WARNING);
	}
}
?>